Skip to content

Method: applyTo(KopfundZahlundKanteState, KopfundZahlundKantePlayer)

1: package de.fhdw.gaming.ipspiel22.kopfundzahlundkante.moves.impl;
2:
3: import de.fhdw.gaming.core.domain.GameException;
4: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteAnswerEnum;
5: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKantePlayer;
6: import de.fhdw.gaming.ipspiel22.kopfundzahlundkante.domain.KopfundZahlundKanteState;
7:
8: /**
9: * Choose "edge".
10: */
11: public class KopfundZahlundKanteEdgeMove extends AbstractKopfundZahlundKanteMove {
12:
13: @Override
14: public void applyTo(final KopfundZahlundKanteState state,
15: final KopfundZahlundKantePlayer player) throws GameException {
16: player.setAnswer(KopfundZahlundKanteAnswerEnum.EDGE);
17: }
18:
19: @Override
20: public String toString() {
21: return "choose edge";
22: }
23: }